import request from '@/utils/request'

// 查询网关连接记录列表
export function listTGatewayConnection(query) {
  return request({
    url: '/business/tGatewayConnection/list',
    method: 'get',
    params: query
  })
}

// 查询网关连接记录详细
export function getTGatewayConnection(id) {
  return request({
    url: '/business/tGatewayConnection/' + id,
    method: 'get'
  })
}

// 新增网关连接记录
export function addTGatewayConnection(data) {
  return request({
    url: '/business/tGatewayConnection',
    method: 'post',
    data: data
  })
}

// 修改网关连接记录
export function updateTGatewayConnection(data) {
  return request({
    url: '/business/tGatewayConnection',
    method: 'put',
    data: data
  })
}

// 删除网关连接记录
export function delTGatewayConnection(id) {
  return request({
    url: '/business/tGatewayConnection/' + id,
    method: 'delete'
  })
}
